﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Services.Protocols;
using System.Web.Services;

/// <summary>
/// Descripción breve de TarjetaService
/// </summary>
public partial class Service
{
    [WebMethod]
    public DataTable TarjetasBuscar(string AfiliadoDNI)
    {
        return TarjetaDeCreditoDA.RecuperarTarjeta(AfiliadoDNI);
     }
    [WebMethod]
    public string TarjetasNueva(string TarjetaNro, string TarjetaNombre, string BancoID, string AfiliadoDNI)
    {
        return TarjetaDeCreditoDA.NuevaTarjeta(TarjetaNro, TarjetaNombre, BancoID, AfiliadoDNI);
    }
    [WebMethod]
    public string TarjetasEliminar(string TarjetaNro)
    {
        return TarjetaDeCreditoDA.EliminarTarjeta(TarjetaNro);
    }
    [WebMethod]
    public DataTable TarjetasListarBancos()
    {
        return TarjetaDeCreditoDA.ListarBancos();
    }
    [WebMethod]
    public string TarjetasModificar(string TarjetaNro, string TarjetaNom, string TarjetaBanco, string AfiliadoDni)
    {
        return TarjetaDeCreditoDA.ModificarTarjeta(TarjetaNro, TarjetaNom, TarjetaBanco, AfiliadoDni);  
    }
    [WebMethod]
    public DataTable TarjetasFormasdepago()
    {
        return TarjetaDeCreditoDA.ListarFormasdePago();
    }
}
